package com.crm.model.mdao;
/**
 * 维修配件详情
 */
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.crm.model.mpojo.Repairforproduct;

@Mapper
public interface RepairforproductMapper {
    int deleteByPrimaryKey(Integer rId);

    int insert(Repairforproduct record);

    int insertSelective(Repairforproduct record);

    Repairforproduct selectByPrimaryKey(Integer rId);

    int updateByPrimaryKeySelective(Repairforproduct record);

    int updateByPrimaryKey(Repairforproduct record);
    
    //id查询(工单编号和产品编号)
    List<Map<String, String>> selectByRIDAndPid(@Param("rId") Integer rId,@Param("pId") Integer pId);
    
    //工单编号查询
    List<Map<String, String>> selectByRID(@Param("rId") Integer rId);
}